package com.zys.exercise;

public class student {
    private String name;
    private int age;
    private boolean sex;
    public student(String name,int age){
        this.name = name;
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;

    }
    public void getName(){
        System.out.println(name);
    }

    public void setAge(int age) {
        this.age = age;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public void getAge(){
        System.out.println(age);
    }

}
